package ch5.ex6;

import static ch5.print.Print.*;

class SomeData{
    protected int i = 0;
}

class GetSomeData {
    static void change(SomeData sd, int i) {
        sd.i = i;
    }
}

public class ProtectedData {
    public static void main(String... args) {
        SomeData d = new SomeData();
        println(d.i);
        
        GetSomeData.change(d, 99);
        println(d.i);
    }
}
